<template>
  <div>
    <van-image
      width="100%"
      height="100%"
      :src="url"
    />
    <van-cell>
      <van-col span="8"></van-col>
      <van-col span="8">{{this.amount}}</van-col>
    </van-cell>
    <van-cell-group>
      <van-cell >
        <van-col span="12"><van-icon name="location-o" />配送方式</van-col>
        <van-col span="8">快递</van-col>
      </van-cell>
    </van-cell-group>
    <van-button type="primary" size="large" @click="showInfo">订单详情</van-button>
  </div>
</template>

<script>
export default {
  name: "Success",
  data() {
    return {
      orderId: null,
      amount: null,
      url: null,
    }
  },
  created() {
    console.log(this.$route.query.amount)
    this.orderId = this.$route.query.orderId
    this.amount = this.$route.query.amount
    this.url = this.$route.query.url

  },
  methods: {
    showInfo(){
        this.$router.push({path: '/info?orderId='+this.orderId,
        })
    }
  }
}
</script>

<style scoped>

</style>